//
//  ImproveCell.m
//  WE
//
//  Created by iMacOne on 15/11/24.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "ImproveCell.h"
#import "Size.h"
#import "ToolUtil.h"
@interface ImproveCell ()

@property (nonatomic, strong)UILabel * contentLbl;

@end

@implementation ImproveCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, 90, 20)];
        _titleLbl.text = @"促进肌肤修复";
        _titleLbl.backgroundColor = [UIColor blueColor];
        _titleLbl.font = FONT(14);
        _titleLbl.textAlignment = NSTextAlignmentCenter;
        
        self.contentLbl = [[UILabel alloc] initWithFrame:CGRectMake(_titleLbl.frame.origin.x, CGRectGetMaxY(_titleLbl.frame) + 10, WindowWidth - 40, [ToolUtil customAutoHeigh:@"色斑的形成不是单纯的色素沉积，是与不同人的体质、年龄、肌肤的老化程度、新陈代谢功能、日常防晒不到位、斑的层次等有关，祛斑应区分斑类型、斑层次，对症治疗，有效不反弹。" width:WindowWidth - 40 num:12])];
        _contentLbl.text = @"色斑的形成不是单纯的色素沉积，是与不同人的体质、年龄、肌肤的老化程度、新陈代谢功能、日常防晒不到位、斑的层次等有关，祛斑应区分斑类型、斑层次，对症治疗，有效不反弹。";
        _contentLbl.font = FONT(12);
        _contentLbl.numberOfLines = 0;
        [self.contentView addSubview:_titleLbl];
        [self.contentView addSubview:_contentLbl];
        
    }
    return self;
}

@end
